button: Remove grab_time
authorTimm Bäder <mail@baedert.org>
Thu, 20 Oct 2016 15:57:53 +0000 (17:57 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 20 Oct 2016 18:12:05 +0000 (20:12 +0200)
Unused.

gtk/gtkbutton.c
gtk/gtkbuttonprivate.h

index 23580090d486e37f13cac9dce78b833129877140..013c97ff9a24715ec95f928c2e98185250b3cbcb 100644 (file)
@@ -986,7 +986,6 @@ gtk_real_button_activate (GtkButton *button)
   GtkWidget *widget = GTK_WIDGET (button);
   GtkButtonPrivate *priv = button->priv;
   GdkDevice *device;
-  guint32 time;
 
   device = gtk_get_current_event_device ();
 
@@ -995,8 +994,6 @@ gtk_real_button_activate (GtkButton *button)
 
   if (gtk_widget_get_realized (widget) && !priv->activate_timeout)
     {
-      time = gtk_get_current_event_time ();
-
       /* bgo#626336 - Only grab if we have a device (from an event), not if we
        * were activated programmatically when no event is available.
        */
@@ -1008,7 +1005,6 @@ gtk_real_button_activate (GtkButton *button)
             {
               gtk_device_grab_add (widget, device, TRUE);
               priv->grab_keyboard = device;
-              priv->grab_time = time;
            }
        }
 
index 8adc4dbc30831c03757a084b2eee0c141225377b..b03d447cd234919bee81294ab572a39cea57b191 100644 (file)
@@ -42,7 +42,6 @@ struct _GtkButtonPrivate
   gfloat                 baseline_align;
 
   guint                  activate_timeout;
-  guint32                grab_time;
 
   guint          align_set             : 1;
   guint          button_down           : 1;